<template>
  <div>
    <div>
      我是子组件-----父组件将值传给我
      <div>
        <span>来自父组件的值:</span>
        <div>
          <h2>{{value}}</h2>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "MyChild",
  props: ["value"],
  data() {
    return {
      ChildValue: ""
    };
  }
};
</script>

<style>
</style>